package controller.listeners.batchPosCodeCorps;



import model.BatchPosCodeCorpsModel;

import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

import view.BatchPosCodeCorpsView;

public class CacheCodeCorpsSelectionListener implements Listener {


	private BatchPosCodeCorpsView _view;
	private BatchPosCodeCorpsModel _model;
	
			public CacheCodeCorpsSelectionListener(BatchPosCodeCorpsView view,
					BatchPosCodeCorpsModel model) {
				this._model = model;
				this._view = view;
			}
			
			public void handleEvent(Event event) {
				int idcodecorp = _view.getSelected_cache_idcodecorp();
				_model.setSelected_cache_code_corp(idcodecorp);
				_view.setCandidateCenters(_model.getCandidateCenters());
				
			}
		}